<UserControl x:Class="Rawr.UI.ComparisonGraphItem"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:menu="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
  SizeChanged="ChangedSize"
  mc:Ignorable="d"
  d:DesignHeight="40" d:DesignWidth="571">

  <Grid x:Name="GraphItemGrid">
    <Grid.ColumnDefinitions>
      <ColumnDefinition x:Name="NameGridCol" Width="170" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="100*" />
      <ColumnDefinition Width="025*" x:Name="EndPaddingColumn" />
    </Grid.ColumnDefinitions>

    <!--IFSL-->
    <Grid x:Name="NameGrid" Grid.Column="0" Margin="2" Width="162" Background="#FFFFFFFF">
    <!--ENDIFSL-->
    <!--IFWPF
    <Grid x:Name="NameGrid" Grid.Column="0" Margin="2" Width="162" Background="#FFFFFFFF" ContextMenuOpening="ContextMenuItem_Opening">
    ENDIFWPF-->
        <menu:ContextMenuService.ContextMenu>
        <!--IFSL-->
        <menu:ContextMenu x:Name="ContextMenuItem" Opened="ContextMenuItem_Opened">
        <!--ENDIFSL-->
        <!--IFWPF
        <menu:ContextMenu x:Name="ContextMenuItem">
        ENDIFWPF-->
          <menu:MenuItem x:Name="ContextItemName" Header="Super Cool Item" IsEnabled="False" />
          <menu:Separator />
          <menu:MenuItem x:Name="ContextEdit" Click="EditItem" Header="Edit..." />
          <menu:MenuItem x:Name="ContextOpenWowhead" Click="OpenInWowhead" Header="Open in Wowhead" />
          <menu:MenuItem x:Name="ContextRefreshArmory" Click="RefreshItemFromArmory" Header="Refresh Item from Armory" Visibility="Collapsed" />
          <menu:MenuItem x:Name="ContextRefreshWowhead" Click="RefreshItemFromWowhead" Header="Refresh Item from Wowhead" />
          <menu:MenuItem x:Name="ContextEquip" Click="EquipItem" Header="Equip" />
          <menu:MenuItem x:Name="ContextEquipUpgradeSet" Click="EquipUpgradeSet" Header="Equip Upgrade Set" Visibility="Collapsed" />
          <menu:MenuItem x:Name="ContextAddCustom" Click="AddCustomGemming" Header="Add Custom Gemming..." Visibility="Collapsed" />
          <menu:MenuItem x:Name="ContextDeleteCustom" Click="DeleteCustomGemming" Header="Delete Custom Gemming" Visibility="Collapsed" />
          <menu:MenuItem x:Name="ContextEvaluateUpgrade" Click="EvaluateUpgrade" Header="Evaluate Upgrade..." />
          <menu:MenuItem x:Name="ContextEvaluateUpgradesBySlot" Click="EvaluateUpgradesbySlot" Header="Evaluate Upgrades for this Slot..." />
          <menu:MenuItem x:Name="ContextRemoveItemFromUpgradeList" Click="ContextRemoveItemFromUpgradeList_Click" Header="Remove Item from Upgrade List" />
        </menu:ContextMenu>
      </menu:ContextMenuService.ContextMenu>

      <Grid.ColumnDefinitions>
        <ColumnDefinition Width="15" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="34" />
      </Grid.ColumnDefinitions>
      <Image x:Name="AvailableImage" Margin="2,2,2,2" MouseLeftButtonDown="AvailableClicked" Source="Images/DiamondOutline.png" />
      <Rectangle x:Name="EquippedRect" Grid.Column="1" Grid.ColumnSpan="2" Fill="#402AFF00" Visibility="Collapsed" />
      <Rectangle x:Name="PartEquippedRect" Grid.Column="1" Grid.ColumnSpan="2" Fill="#182AFF00" Visibility="Collapsed" />
      <Rectangle x:Name="HighLightedRect" Grid.Column="1" Grid.ColumnSpan="2" Fill="#4000EBFF" Visibility="Collapsed" />
      <TextBlock x:Name="TextLabel" Grid.Column="1" Margin="0,0,4,0" HorizontalAlignment="Stretch" MaxHeight="30" Text="test" TextAlignment="Right" TextWrapping="Wrap" VerticalAlignment="Center" />
      <Image x:Name="ItemImage" Grid.Column="2" Height="32" Margin="0" Width="32" HorizontalAlignment="Left" VerticalAlignment="Center" />
    </Grid>
        <StackPanel x:Name="NegativeStack" Grid.Column="1" Margin="0,0,1,0" HorizontalAlignment="Right" IsHitTestVisible="False" Orientation="Horizontal" />
        <StackPanel x:Name="PositiveStack" Grid.Column="2" HorizontalAlignment="Left" IsHitTestVisible="False" Orientation="Horizontal">
      <TextBlock x:Name="TotalLabel" Margin="4,0,-16,0" HorizontalAlignment="Left" Text="0" VerticalAlignment="Center" />
    </StackPanel>
  </Grid>
</UserControl>